package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 存储键值对的表
 * @Date 2023-11-19 13:41:25
 * @author hjj
 */
@Data
@TableName("kv_code")
@ApiModel(value="KvCode对象", description="存储键值对的表")
public class KvCode implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[类型]不能为空")
    @ApiModelProperty("类型")
    private Integer type;

    @NotNull(message="[值]不能为空")
    @ApiModelProperty("值")
    private Integer value;

    @NotBlank(message="[名称]不能为空")
    @Size(max= 128,message="编码长度不能超过128")
    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
